package com.ruoyi.mof.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author Fei.Cong
 * @date 2023-12-13 11:12
 */
@Configuration
@ConfigurationProperties(prefix = "cert")
public class CertConfig {

    /**
     * 互联网接口地址
     */
    public static String prefixUrl;

    /**
     * 上下文
     */
    public static String context;

    /**
     * token
     */
    public static String tokenUrl;

    /**
     * 赋码私钥
     */
    public static String privateKey;

    /**
     * 赋码公钥
     */
    public static String publicKey;

    /**
     * 客户端账号标识
     */
    public static String appKey;

    /**
     * 客户端账号密码
     */
    public static String appSecret;

//    /**
//     * 证书跳转服务器
//     */
//    public static String certServer;
//
//    /**
//     * 证书跳转服务器上下文
//     */
//    public static String environmentContext;

    public static String getPrefixUrl() {
        return prefixUrl;
    }

    public void setPrefixUrl(String prefixUrl) {
        CertConfig.prefixUrl = prefixUrl;
    }

    public static String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        CertConfig.privateKey = privateKey;
    }

    public static String getPublicKey() {
        return publicKey;
    }

    public void setPublicKey(String publicKey) {
        CertConfig.publicKey = publicKey;
    }

    public static String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        CertConfig.appKey = appKey;
    }

    public static String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        CertConfig.appSecret = appSecret;
    }

//    public static String getCertServer() {
//        return certServer;
//    }
//
//    public void setCertServer(String certServer) {
//        CertConfig.certServer = certServer;
//    }
//
//    public static String getEnvironmentContext() {
//        return environmentContext;
//    }
//
//    public void setEnvironmentContext(String environmentContext) {
//        CertConfig.environmentContext = environmentContext;
//    }

    public static String getContext() {
        return context;
    }

    public void setContext(String context) {
        CertConfig.context = context;
    }

    public static String getTokenUrl() {
        return tokenUrl;
    }

    public void setTokenUrl(String tokenUrl) {
        CertConfig.tokenUrl = tokenUrl;
    }
}
